<?php

namespace App\Http\Controllers\home;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

use DB;

class IndexController extends Controller
{
    public function index()
    {
    	$links=DB::table('links')->get();
    	$list=DB::table('type')->get();
    	$config=DB::table('config')->get();
    	$goods=DB::table('goods')->where('under','1')->inRandomOrder()->get();
    	return view('home.index',['links'=>$links,'list'=>$list,'config'=>$config,'goods'=>$goods]);
    }
}
